package com.scommunity.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.scommunity.domain.Car;

import java.util.List;

public interface ICarService extends IService<Car>{
    //List<Car> all(/*long oid*/);
    PageInfo<Car> all(int currentPage, int pageSize);

    Car add(Car car);

    void delete(Car car);

    void updateN(Car car);

    PageInfo<Car> getPageByCondition(Car car, int currentPage, int pageSize);

    List<Car> getByOwnerId(Long ownerId);

    void addTime(Car car);
}
